package com.gmg.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

import com.gmg.R;
import com.gmg.activity.login.Login;

public class GoogleMapGameActivity extends Activity implements OnClickListener {
	private Button launchCityButton;

	/** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        launchCityButton = (Button) findViewById(R.id.mainLoginButton);
        launchCityButton.setOnClickListener( this );
        
    }

	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.mainLoginButton:
			// Page de connexion
			Intent intent = new Intent(GoogleMapGameActivity.this, Login.class );
			startActivity(intent);
			
//			Intent intent = new Intent(this, Activite2.class );
//			startActivityForResult(intent, R.integer.RETURN_CODE_RESULT_ACTIVITY2);
			break;
		}
	}
    
}